using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Domain.Model.BankAccounts;
using Domain.Model.Orders;
using Domain.Model.PhoneNumbers;
using Domain.Model.Addresses;
using Domain.Model.Affiliates;

namespace Domain.Model.Employees
{
    public class Employee
    {
        public Employee()
        {
            this.Addresses = new HashSet<Address>();
            this.PhoneNumbers = new HashSet<PhoneNumber>();
            this.BankAccounts = new HashSet<BankAccount>();
        }

        [Key]
        public int Code { get; set; }

        public string FirstName { get; set; }
        public string MiddleName { get; set; }
        public string LastName { get; set; }
        public string JobTitle { get; set; }
        public string HomePage { get; set; }
        public string Email { get; set; }

        public Nullable<System.DateTime> CreatedOn { get; set; }
        public Nullable<System.DateTime> UpdatedOn { get; set; }
   
        public virtual Affiliate Affiliate { get; set; }
        public virtual ICollection<Address> Addresses { get; set; }
        public virtual ICollection<PhoneNumber> PhoneNumbers { get; set; }
        public virtual ICollection<BankAccount> BankAccounts { get; set; }
    
    }
}
